package cn.kgc.controller;

import cn.kgc.client.RestDmImageClient;
import cn.kgc.pojo.DmImage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/base")
//@Slf4j
public class BaseController {

    @Autowired
    RestDmImageClient restDmImageClient;

    @RequestMapping("/view/image")
    public DmImage getDmImageById(@RequestParam Long id ) throws Exception {
//            log.info("id"+id);
            return  restDmImageClient.getDmImageById(id);
    }

}
